From 37726a4cb69ab54298a3c95ccf469e1ab87ed4b1 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 19 Sep 2011 14:07:13 -0400 Subject: [PATCH] app: Don't abort if a .desktop file has no Exec= key Seen in the wild in nautilus-pastebin-configurator.desktop. --- src/shell-app.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell-app.c b/src/shell-app.c index 7535a8199..c813d9166 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -1171,6 +1171,9 @@ trim_exec_line (const char *str) { const char *start, *end, *pos; + if (str == NULL) + return NULL; + end = strchr (str, ' '); if (end == NULL) end = str + strlen (str); -- 2.39.5